{% extends 'shop/base.html' %}
{% block title %}
用户修改
{% endblock %}
{% block style%}
    <!--引用-->
    <script src="/static/shop/js/jquery.min.js"></script>
    <script src="/static/shop/js/bootstrap.js"></script>
    <link rel="stylesheet" href="/static/shop/css/bootstrap.css">
    <link rel="stylesheet" href="/static/shop/css/footer.css">
{% endblock %}
{% block lable %}

{% endblock %}
{% block contenter %}
<div class="main">

        <div id="allorders" class="col-sm-6 col-sm-offset-3">
            <div class="panel panel-default">
                <div class="panel-heading">修改用户信息</div>
                <div class="panel-body">
                    <form class="form-horizontal" method="post">
                        {% csrf_token %}
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="inputEmail3" value = '{{ user.username }}' name ='name'>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">联系方式</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="inputPassword3" value = '{{ user.quserinfo.phone }}' name = 'phone'>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword4" class="col-sm-2 control-label">联系地址</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="inputPassword4" value = '{{ user.quserinfo.address }}' name = 'address'>
                            </div>
                        </div>

                        <div class="form-group">
                            <button type="submit" class="btn btn-default col-lg-4 col-lg-offset-4">修&nbsp;&nbsp;改
                            </button>

                        </div>
                    </form>
                </div>
            </div>
        </div>

    </div>
{% endblock %}
<br/><br/><br/><br/>
{% block script %}

{% endblock %}
